/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.soccer.cms.modules.cms.entity;

import org.hibernate.validator.constraints.Length;
import com.soccer.cms.modules.cms.entity.Category;
import com.soccer.cms.modules.sys.entity.Dict;

import com.soccer.cms.common.persistence.DataEntity;


/**
 * 图片信息Entity
 * @author zouqh
 * @version 2015-05-29
 */
public class Imageinfo extends DataEntity<Imageinfo> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// 编码
	private String name;		// 名称
	private Category category;		// 所属栏目
	private String entityid;		// 所属实体
	private Dict imagetype;		// 图片类型
	private Integer sort;		// 顺序
	private String path;		// 存储路径
	
	public Imageinfo() {
		super();
	}

	public Imageinfo(String id){
		super(id);
	}

	@Length(min=1, max=50, message="编码长度必须介于 1 和 50 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=1, max=100, message="名称长度必须介于 1 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}
	
	@Length(min=0, max=64, message="所属实体长度必须介于 0 和 64 之间")
	public String getEntityid() {
		return entityid;
	}

	public void setEntityid(String entityid) {
		this.entityid = entityid;
	}
	
	public Dict getImagetype() {
		return imagetype;
	}

	public void setImagetype(Dict imagetype) {
		this.imagetype = imagetype;
	}
	
	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}
	
	@Length(min=0, max=500, message="存储路径长度必须介于 0 和 500 之间")
	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}
	
}